package cn.itcast.service.cargo.impl;

import cn.itcast.dao.cargo.ExtEproductDao;
import cn.itcast.domain.cargo.ExtEproduct;
import cn.itcast.domain.cargo.ExtEproductExample;
import cn.itcast.service.cargo.ExtEproductSerivce;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @AuThor：zengxing
 * @DATE:2020/12/26 15:29  250
 */
@Service(timeout = 100000)
public class ExtEproductSerivceImpl implements ExtEproductSerivce {
    @Autowired
    private ExtEproductDao extEproductDao;
    @Override
    public List<ExtEproduct> findByExportId(String id) {
        ExtEproductExample example = new ExtEproductExample();
        example.createCriteria().andExportIdEqualTo(id);
        return extEproductDao.selectByExample(example);
    }
}
